try { var dummy = AnonymousUserManager; } catch ( e ) {

/**
 * 
 */
function AnonymousUserManager(){
	// Do nothing. Use the init method instead.
}

// Required for AS 1 inheritance.
AnonymousUserManager.prototype = new RTCFComponent();

/**
 * 
 */
AnonymousUserManager.prototype.init = function(){
	// Create a users list that everyone can see
	this.users = this.getSharedObject("public/users");
	// Let any client, regardless of roles, read the public directory
	this.allowReadAccess("public");

	// Listen to events to add and remove users from the user list
	this.rtcf.addListener("onAuthorizedConnect", this);
	this.rtcf.addListener("onAuthorizedDisconnect", this);

}

AnonymousUserManager.prototype.onAuthorizedConnect = function(client, user){
	this.users.setProperty(client.id, user.properties);
	for (var p in user.properties) trace("AnonymousUserManager.prototype.onAuthorizedConnect> " + p + ": " + user.properties[p]);
}

AnonymousUserManager.prototype.onAuthorizedDisconnect = function(client){
	this.users.setProperty(client.id, null);
}



} // end catch
